import com.alibaba.excel.EasyExcelFactory;
import com.alibaba.excel.metadata.Sheet;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class Read07 {

    public static void main(String[] args) throws IOException {
        InputStream in = new BufferedInputStream(new FileInputStream("G:\\IdeaProjects\\my-java-project\\dc-java\\src\\test\\java\\test.xlsx"));
        try {
            //读取07版的excel
            ExcelListener excelListener = new ExcelListener();

            EasyExcelFactory.readBySax(in, new Sheet(1, 0, PZ.class),excelListener);

        } catch (Exception e) {
            // TODO: handle exception
        }finally {
            in.close();
        }

    }

}